package cn.kimming.wms.excep;

import cn.kimming.wms.domain.StockOutcomeBillItem;

/**
 * 库存异常,当库存对象为空或者库存数量小于明细数量时抛出此异常
 * 
 * @author KimmingLau
 */
public class StockIsNotEnoughException extends RuntimeException {

	private static final long serialVersionUID = -9024773539312352634L;

	public StockIsNotEnoughException(StockOutcomeBillItem item) {
		super("[" + item.getProduct().getName() + "]" + "的库存不足" + "[" + item.getNumber() + "]");
	}
}
